package cn.wind.xboot.logic.dao;

import cn.wind.xboot.logic.entity.Accessid;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * AccessID表 Mapper 接口
 * </p>
 *
 * @author wind
 * @since 2019-03-12
 */
public interface AccessidMapper extends BaseMapper<Accessid> {
    /**
     * 根据菜品类型查询accessid信息
     * @param type
     * @return
     */
    @Select("select * from t_accessid where type=#{type}")
    Accessid selectByType(@Param( "type" ) Integer type);

    /**
     * 获取所有accessid信息
     * @return
     */
    @Select("select * from t_accessid order by type")
    List<Accessid> findAll();
}
